---
layout: "default"
title: "..."
description: "Swift documentation for '...': Returns a countable closed range that contains both of its bounds."
keywords: "...,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func--bound_-protocol-comparable-strideable-where-bound-stride_-signedinteger_-bound-maximum_-bound">
<a class="toggle-link" data-toggle="collapse" href="#comment-func--bound_-protocol-comparable-strideable-where-bound-stride_-signedinteger_-bound-maximum_-bound">func <wbr>...&lt;Bound :<wbr> protocol&lt;Comparable, _Strideable&gt; where Bound.Stride : SignedInteger&gt;(<wbr>_:<wbr> Bound, maximum: Bound)</a>
        
<div class="comment collapse" id="comment-func--bound_-protocol-comparable-strideable-where-bound-stride_-signedinteger_-bound-maximum_-bound"><div class="p">
    <p>Returns a countable closed range that contains both of its bounds.</p>

<p>For example:</p>

<pre><code class="language-swift">let singleDigits = 0...9
print(singleDigits.contains(9))
// Prints &quot;true&quot;</code></pre>

<p><strong>Parameters:</strong>
  <strong>minimum:</strong> The lower bound for the range.
  <strong>maximum:</strong> The upper bound for the range.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func ...&lt;Bound : protocol&lt;Comparable, _Strideable&gt; where Bound.Stride : SignedInteger&gt;(minimum: Bound, maximum: Bound) -&gt; CountableClosedRange&lt;Bound&gt;</code>
    
    
</div></div>
</div>
